package demo.feign;

import com.stylefeng.guns.core.common.persistence.model.User;
import feign.RequestLine;
import org.apache.ibatis.annotations.Param;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.ws.rs.GET;

/**
 * @Author: 朱媛媛
 * @Description：
 * @Date： Created in 下午 4:06 on 2018/3/17 0017.
 */
@FeignClient(value = "springboot-h1")
        //,fallback=ToService.class) 服务降级后的接口实现类
public interface ToService {

    @RequestLine("GET /test")
    User hello();
}
